package com.cy.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RestController;


@MapperScan("com.cy.demo.mapper")//由SpringBoot提供的注解，作用是：将某个包作为注解参数值，就会在项目启动时自动去扫描这个包里的所有接口
@RestController
@SpringBootApplication
public class DemoApplication {

	public static void main(String[] args) {

		SpringApplication.run(DemoApplication.class, args);
	}

//	@RequestMapping("hello")
//	public String sayHello(){
//
//		return "你好！";
//	}

}
